
/**
 * @name Ccay.example 公共方法 供demo使用
 * 
 * @since 2012-12-14
 * @param page
 */
Ccay.Module.define("Ccay.Example.RestClient.Json", function(page, $S) {
			// 跳转到试一试的tab，把js和html代码传过去
			 page.ready=function(){
			 	
			 	$S("#jsonPojo").click(function(){
			 		Ccay.doGet("services/ccay/greeting/restclient/testpojo",null,function(data){
			 			alert(Ccay.DataHelper.toJsonStr(data));
			 		})
			 	});
			 	
			 	$S("#jsonList").click(function(){
			 		Ccay.doGet("services/ccay/greeting/restclient/testList",null,function(data){
			 			alert(Ccay.DataHelper.toJsonStr(data));
			 		})
			 	});
			 	
			 	$S("#jsonMap").click(function(){
			 		Ccay.doGet("services/ccay/greeting/restclient/testMap",null,function(data){
			 			alert(Ccay.DataHelper.toJsonStr(data));
			 		})
			 	});
			 	$S("#jsonArray").click(function(){
			 		Ccay.doGet("services/ccay/greeting/restclient/testArray",null,function(data){
			 			alert(Ccay.DataHelper.toJsonStr(data));
			 		})
			 	});
			 	
			 	$S("#xmlPojo").click(function(){
			 		Ccay.doGet("services/ccay/greeting/restclient/testXmlPojo",null,function(data){
			 			alert(Ccay.DataHelper.toJsonStr(data));
			 		})
			 	});
			 	$S("#xmlList").click(function(){
			 		Ccay.doGet("services/ccay/greeting/restclient/testXmlList",null,function(data){
			 			alert(Ccay.DataHelper.toJsonStr(data));
			 		})
			 	});
			 	$S("#xmlArray").click(function(){
			 		Ccay.doGet("services/ccay/greeting/restclient/testXmlArray",null,function(data){
			 			alert(Ccay.DataHelper.toJsonStr(data));
			 		})
			 	});
			 	 
			 }
		});
